home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / show movie / windstuff.h < prev   
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.9 KB  |  64 lines

  1. /*
  2.     File:        WindStuff.h
  3.  
  4.     Contains:        Window handling routine headers.
  5.  
  6.     Written by: Jason Hodges-Harris & Don Swatman
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/17/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __WINDSTUFF__
  25. #define __WINDSTUFF__
  26.  
  27. #include <Types.h>
  28. #include <Windows.h>
  29.  
  30.  
  31. //----------------------------------------------
  32. // Globals
  33. //----------------------------------------------
  34.  
  35. #define kMaxWindows 5  // Maxinum windows we can display
  36.  
  37. extern WindowPtr gTheWinds[kMaxWindows];  // List of all the windows
  38. extern Boolean     gDone;                   // Set to true to quit program
  39.     
  40. //----------------------------------------------
  41. // Prototypes
  42. //----------------------------------------------
  43.  
  44. Boolean IsOurWindow( WindowPtr pWindow);
  45. short GetWindowNum ( WindowPtr pWindow );
  46. Boolean IsFreeWind( short *newWindNum, short howManyNeeded);
  47.  
  48.  
  49. void CloseOurWindow ( short windNum );
  50. void CloseAllWindows(void);
  51.  
  52. #define kWindAtFront (WindowPtr)-1L  // Create a window at the front
  53. void CreateWindow ( short windNum, Str255 theTitle, WindowPtr pWindowBehind );
  54.  
  55. void DragSelWind( WindowPtr window,
  56.                                     Point     mouseLoc);
  57.  
  58. void DoGoAwayWind ( WindowPtr pWindow,
  59.                                         Point     mouseLoc);
  60. void    DoWindUpdate ( WindowPtr pWindow );
  61.  
  62. void AboutBox(void);
  63.  
  64. #endif